﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/MasterPage.master" Title="查看测试数据" CodeFile="ViewTest.aspx.cs" Inherits="ProductionAnalysis.Web.ViewTest_ViewTest" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
    <div>
        <br />
        <asp:Panel ID="Panel1" runat="server">
            你的工号是：<asp:Label ID="Label2" runat="server" ForeColor="#C000C0" Text="Label"></asp:Label>，选择时间段查看你的相关操作数据：</asp:Panel>
        <br />
        <asp:Panel ID="Panel2" runat="server">        
                起始时间：<asp:TextBox ID="TextBox1" runat="server" AutoPostBack="True"></asp:TextBox><asp:CalendarExtender ID="TextBox1_CalendarExtender" runat="server" 
                    Enabled="True" TargetControlID="TextBox1">
                </asp:CalendarExtender>
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                终止时间：<asp:TextBox ID="TextBox2" runat="server" AutoPostBack="True" 
                    Style="vertical-align: top"></asp:TextBox><asp:CalendarExtender ID="TextBox2_CalendarExtender" runat="server" 
                    Enabled="True" TargetControlID="TextBox2">
                </asp:CalendarExtender>            
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;            
                <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="查  询" />
        </asp:Panel>
        <br />
        <table style="width: 100%">
            <tr>
                <td>
                    电性能测试数据：</td>
            </tr>
            <tr>
                <td>
                    <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
                        AutoGenerateColumns="False" BackColor="White" BorderColor="White" 
                        BorderStyle="Ridge" BorderWidth="2px" CellPadding="3" CellSpacing="1" 
                        DataKeyNames="ProductSN,TestTime,ProductTypeID,UserID,ENAID,SpecVersion,IsPass" 
                        EmptyDataText="没有相关数据" GridLines="None" 
                        OnPageIndexChanging="GridView1_PageIndexChanging" 
                        OnSelectedIndexChanged="GridView1_SelectedIndexChanged" Width="100%">
                        <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
                        <Columns>
                            <asp:CommandField SelectText="详细" ShowSelectButton="True" />
                            <asp:BoundField DataField="ProductSN" HeaderText="产品序列号" />
                            <asp:BoundField DataField="TestTime" DataFormatString="{0:g}" 
                                HeaderText="测试时间" />
                            <asp:BoundField DataField="ProductTypeID" HeaderText="产品类型" />
                            <asp:BoundField DataField="UserID" HeaderText="测试员工号" />
                            <asp:BoundField DataField="ENAID" HeaderText="矢网编号" />
                            <asp:BoundField DataField="SpecVersion" HeaderText="指标单版本" />
                            <asp:BoundField DataField="IsPAss" HeaderText="是否通过" />
                        </Columns>
                        <RowStyle BackColor="#DEDFDE" ForeColor="Black" />
                        <SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
                        <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#E7E7FF" />
                    </asp:GridView>
                </td>
            </tr>
            <tr>
                <td>
                    交调测试数据：</td>
            </tr>
            <tr>
                <td>
                    <asp:GridView ID="GridView2" runat="server" AllowPaging="True" 
                        AutoGenerateColumns="False" BackColor="White" BorderColor="White" 
                        BorderStyle="Ridge" BorderWidth="2px" CellPadding="3" CellSpacing="1" 
                        DataKeyNames="ProductSN,TestTime" EmptyDataText="没有相关数据！" GridLines="None" 
                        OnPageIndexChanging="GridView2_PageIndexChanging" 
                        OnSelectedIndexChanged="GridView2_SelectedIndexChanged" Width="100%">
                        <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
                        <Columns>
                            <asp:CommandField HeaderText="详细" ShowSelectButton="True" />
                            <asp:BoundField DataField="ProductSN" HeaderText="腔体序列号" />
                            <asp:BoundField DataField="TestTime" HeaderText="测试时间" />
                            <asp:BoundField DataField="ProductTypeID" HeaderText="产品类型" />
                            <asp:BoundField DataField="UserID" HeaderText="测试员" />
                            <asp:BoundField DataField="PCIP" HeaderText="IP地址" />
                            <asp:BoundField DataField="SignalSource1" HeaderText="信号源1" />
                            <asp:BoundField DataField="SignalSource2" HeaderText="信号源2" />
                            <asp:BoundField DataField="SpectrumAnalyzer" HeaderText="频谱仪" />
                            <asp:BoundField DataField="TestStep" HeaderText="测试阶段" />
                            <asp:BoundField DataField="IsPass" HeaderText="是否通过" />
                        </Columns>
                        <RowStyle BackColor="#DEDFDE" ForeColor="Black" />
                        <SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
                        <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#E7E7FF" />
                    </asp:GridView>
                </td>
            </tr>
            <tr>
                <td>
                    关联操作数据：</td>
            </tr>
            <tr>
                <td>
                    <asp:GridView ID="GridView3" runat="server" AllowPaging="True" 
                        AutoGenerateColumns="False" BackColor="White" BorderColor="White" 
                        BorderStyle="Ridge" BorderWidth="2px" CellPadding="3" CellSpacing="1" 
                        EmptyDataText="没有相关数据！" GridLines="None" 
                        OnPageIndexChanging="GridView3_PageIndexChanging" Width="100%">
                        <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
                        <Columns>
                            <asp:BoundField DataField="PackageProductSN" HeaderText="成品序列号" />
                            <asp:BoundField DataField="ProductSN" HeaderText="腔体序列号" />
                            <asp:BoundField DataField="SN3BK" HeaderText="3BK条码" />
                            <asp:BoundField DataField="UserID" HeaderText="关联员" />
                            <asp:BoundField DataField="UnionTime" HeaderText="关联时间" />
                        </Columns>
                        <RowStyle BackColor="#DEDFDE" ForeColor="Black" />
                        <SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
                        <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#E7E7FF" />
                    </asp:GridView>
                </td>
            </tr>
            <tr>
                <td>
                    包装操作数据：</td>
            </tr>
            <tr>
                <td>
                    <asp:GridView ID="GridView4" runat="server" AllowPaging="True" 
                        AutoGenerateColumns="False" BackColor="White" BorderColor="White" 
                        BorderStyle="Ridge" BorderWidth="2px" CellPadding="3" CellSpacing="1" 
                        EmptyDataText="没有相关数据！" GridLines="None" 
                        OnPageIndexChanging="GridView4_PageIndexChanging" Width="100%">
                        <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
                        <Columns>
                            <asp:BoundField DataField="PackageProductSN" HeaderText="成品序列号" />
                            <asp:BoundField DataField="packer" HeaderText="包装员" />
                            <asp:BoundField DataField="PackageTime" HeaderText="包装时间" />
                        </Columns>
                        <RowStyle BackColor="#DEDFDE" ForeColor="Black" />
                        <SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
                        <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#E7E7FF" />
                    </asp:GridView>
                </td>
            </tr>
        </table>
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
    
    </div>
    </ContentTemplate> 
    </asp:UpdatePanel> 
</asp:Content>
